/*
 * @Author: rogi
 * @Date: 2022-07-18 15:47:08
 * @LastEditTime: 2022-11-02 10:44:10
 * @LastEditors: esraiskan
 * @Description: 描述
 */
import request from "../utils/request";

export function queryById(params) {
  return request(`/jeecg-boot/qbt/qbtProduct/queryById`, {
    params
  })
}

export function detailById(params) {
  return request(`/jeecg-boot/qbt/capitalProductRule/detailById`, {
    params
  })
}

export function queryAllAvailableProductType(params) {
  return request(`/jeecg-boot/qbt/qbtProductTypeSubMapping/getByProductTypeId`, {
    params
  })
}

export function queryByProductId(params) {
  return request(`/jeecg-boot/qbt/qbtProduct/queryByProductId`, {
    params
  })
}

export function getListForProduct(params) {
  return request(`/jeecg-boot/workFlow/processModelDefinition/getListForProduct`, {
    params
  })
}

export function queryByFundProductRuleId(params) {
  return request(`/jeecg-boot/qbt/capitalProductRule/queryByFundProductRuleId`, {
    params
  })
}

export function qbtCapitalProductAdmittanceRuleList(params) {
  return request(`/jeecg-boot/qbt/qbtCapitalProductAdmittanceRule/list`, {
    params
  })
}

export function qbtRegionQueryAll(params) {
  return request(`/jeecg-boot/qbt/qbtRegion/queryAll`, {
    params
  })
}

export function qbtProductClassificationList(params) {
  return request(`/jeecg-boot/qbt/qbtProductClassification/list`, {
    params
  })
}

export function qbtCreditConfigKeyQueryAll(params) {
  return request(`/jeecg-boot/qbt/qbtCreditConfigKey/queryAll`, {
    params
  })
}

export function qbtCapitalProductAdmittanceRuleQueryById(params) {
  return request(`/jeecg-boot/qbt/qbtCapitalProductAdmittanceRule/queryById`, {
    params
  })
}

export function capitalProductRuleGetDetailVoById(params) {
  return request(`/jeecg-boot/qbt/capitalProductRule/getDetailVoById`, {
    params
  })
}

export function qbtCapitalProductAdmittanceRuleUpdateStatus(params) {
  return request(`/qbt/qbtCapitalProductAdmittanceRule/updateStatus`, {
    params
  })
}


export function capitalProductRuleAdd(body) {
  return request(`/jeecg-boot/qbt/capitalProductRule/add`, {
    method: 'post',
    body
  })
}

export function qbtCapitalProductAdmittanceRuleAdd(body) {
  return request(`/jeecg-boot/qbt/qbtCapitalProductAdmittanceRule/add`, {
    method: 'post',
    body
  })
}

export function qbtProductClassificationAdd(body) {
  return request(`/jeecg-boot/qbt/qbtProductClassification/add`, {
    method: 'post',
    body
  })
}

export function qbtProductAdd(body) {
  return request(`/jeecg-boot/qbt/qbtProduct/add`, {
    method: 'post',
    body
  })
}

export function qbtProductEdit(body) {
  return request(`/jeecg-boot/qbt/qbtProduct/edit`, {
    method: 'put',
    body
  })
}

export function capitalProductRuleEdit(body) {
  return request(`/jeecg-boot/qbt/capitalProductRule/edit`, {
    method: 'put',
    body
  })
}

export function qbtProductClassificationEdit(body) {
  return request(`/jeecg-boot/qbt/qbtProductClassification/edit`, {
    method: 'put',
    body
  })
}

export function qbtCapitalProductAdmittanceRuleEdit(body) {
  return request(`/jeecg-boot/qbt/qbtCapitalProductAdmittanceRule/edit`, {
    method: 'put',
    body
  })
}

export function qbtProductClassificationDelete(params) {
  return request(`/jeecg-boot/qbt/qbtProductClassification/delete`, {
    method: 'delete',
    params
  })
}

export function qbtCapitalProductAdmittanceRuleDelete(params) {
  return request(`/jeecg-boot/qbt/qbtCapitalProductAdmittanceRule/delete`, {
    method: 'delete',
    params
  })
}


// /jeecg-boot/qbt/qbtProductClassification/delete?id=1567703879196733441